import Vue from 'vue'
import './plugins/vuetify'
import App from './App.vue'
import router from './router'
import store from "./store";
import './config/http'
import MyComponent from './components/MyComponent'
import qs from 'qs'
import './assets/material.css';
import './assets/googleapis.css';
import './assets/material+icon.css';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.prototype.$qs=qs;
Vue.use(MyComponent);
Vue.config.productionTip = false
Vue.use(ElementUI)
Vue.filter('dateFormat', (dataStr) => {
  const time = new Date(dataStr);

  function timeAdd0 (str) {
    if (str < 10) {
      str = '0' + str;
    }
    return str;
  }
  const y = time.getFullYear();
  const m = time.getMonth() + 1;
  const d = time.getDate();
  const h = time.getHours();
  const mm = time.getMinutes();
  const s = time.getSeconds();
  return y + '-' + timeAdd0(m) + '-' + timeAdd0(d) + ' ' + timeAdd0(h) + ':' + timeAdd0(mm) + ':' + timeAdd0(s);
});
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

